@extends('index.user.index')

@section('navbar')
    <ol class="breadcrumb">
        <li><a href="{{url('/')}}">首页</a></li>
        <li><a href="{{url('/user')}}">用户中心</a></li>
        <li class="active">修改密码</li>
    </ol>
@endsection

@section('user-content')
    <form class="form-horizontal" method="POST" action="{{ url('/user/change-password') }}">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">

        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">旧密码</label>

            <div class="col-sm-4 col-end">
                <input type="password" class="form-control" name="old_password" placeholder="请输入旧密码" value="{{old('old_password')}}">
            </div>
        </div>
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">新密码</label>

            <div class="col-sm-4 col-end">
                <input type="password" class="form-control" name="password" placeholder="请输入新密码" value="{{old('password')}}">
            </div>
        </div>
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label"></label>

            <div class="col-sm-4 col-end">
                <input type="password" class="form-control" name="password_confirmation" placeholder="请确认新密码" value="{{old('password_confirmation')}}">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-success radius">修改</button>
            </div>
        </div>
    </form>
@endsection